<script>
	export default {
		onLaunch: function() {
			//触发定位
			this.$store.dispatch('loc/initLocAction')
			//初始化购物车
			try{
				let value = uni.getStorageSync('uni-cart-2301')
				console.log('本地cartList',value);
				if(value){
					this.$store.commit('cart/initCartMut',value)
				}
			}catch(e){
				console.log('本地cart提取失败');
				//TODO handle the exception
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import url('colorui/icon.css');
	@import url('colorui/main.css');
	@import url('colorui/animation.css');
	@import './tuniao-ui/index.scss';
	@import './tuniao-ui/iconfont.css';
	@import url('static/font/iconfont.css');
</style>
